Optimal. Leaf size=54 \[ \frac{c \log \left (c+d x^n\right )}{d n (b c-a d)}-\frac{a \log \left (a+b x^n\right )}{b n (b c-a d)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0543653, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {446, 72} \[ \frac{c \log \left (c+d x^n\right )}{d n (b c-a d)}-\frac{a \log \left (a+b x^n\right )}{b n (b c-a d)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \frac{x^{-1+2 n}}{\left (a+b x^n\right ) \left (c+d x^n\right )} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x}{(a+b x) (c+d x)} \, dx,x,x^n\right )}{n}\\ &=\frac{\operatorname{Subst}\left (\int \left (-\frac{a}{(b c-a d) (a+b x)}+\frac{c}{(b c-a d) (c+d x)}\right ) \, dx,x,x^n\right )}{n}\\ &=-\frac{a \log \left (a+b x^n\right )}{b (b c-a d) n}+\frac{c \log \left (c+d x^n\right )}{d (b c-a d) n}\\ \end{align*}
Mathematica [A] time = 0.0350836, size = 44, normalized size = 0.81 \[ -\frac{a d \log \left (a+b x^n\right )-b c \log \left (c+d x^n\right )}{b^2 c d n-a b d^2 n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 59, normalized size = 1.1 \begin{align*}{\frac{a\ln \left ( a+b{{\rm e}^{n\ln \left ( x \right ) }} \right ) }{ \left ( ad-bc \right ) bn}}-{\frac{c\ln \left ( c+d{{\rm e}^{n\ln \left ( x \right ) }} \right ) }{dn \left ( ad-bc \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.945042, size = 81, normalized size = 1.5 \begin{align*} -\frac{a \log \left (\frac{b x^{n} + a}{b}\right )}{b^{2} c n - a b d n} + \frac{c \log \left (\frac{d x^{n} + c}{d}\right )}{b c d n - a d^{2} n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.07062, size = 92, normalized size = 1.7 \begin{align*} -\frac{a d \log \left (b x^{n} + a\right ) - b c \log \left (d x^{n} + c\right )}{{\left (b^{2} c d - a b d^{2}\right )} n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2 \, n - 1}}{{\left (b x^{n} + a\right )}{\left (d x^{n} + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]